export default {
  onShareAppMessage(res) {
    return {
      title: this._share.title,
      path: this._share.path,
      imageUrl: this._share.imageUrl,
      desc: this._share.desc,
      content: this._share.content,
      success(res) {
        uni.showToast({
          title: '分享成功'
        })
      },
      fail(res) {
        uni.showToast({
          title: '分享失败',
          icon: 'none'
        })
      },
      ...this.share
    }
  },
  computed: {
    _share() {
      return {
        title: '芽知',
        path: '/pages/home/Home',
        imageUrl: '',
        desc: '',
        content: ''
      }
    }
  }
}
